package com.hui.service;

import com.github.pagehelper.PageInfo;
import com.hui.dto.PageDTO;
import com.hui.dto.RoomInsertDTO;
import com.hui.dto.RoomPageDTO;
import com.hui.dto.RoomUpdateDTO;
import com.hui.entity.Room;
import com.hui.excel.RoomExcel;
import com.hui.exception.VersionException;
import com.hui.vo.RoomVO;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.retry.annotation.Retryable;

import java.util.List;

public interface RoomService {
    int insert (RoomInsertDTO room);
    Room select(Long id);
    List<RoomVO> list();
    PageInfo<Room> page(RoomPageDTO dto);
    int update(RoomUpdateDTO dto);
    int delete(Long id);
    int deleteBatch(List<Long> ids);


    List<RoomExcel> getExcelData();
}
